home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / demos / r-z / sbase4pro / trading / menu.sbp < prev    next >
Text File  |  1995-07-10  |  15KB  |  654 lines

  1. SBP
  2.  ÿ½     MENU                                
  3.  ÿ½     SBase Demo Trading-System
  4.  ÿ½     Hauptmenüprogramm
  5.  ÿ½     Neueste Version vom 1. Februar 1991
  6.  
  7.  ÿ³ÿ_ÿwferror 
  8.  
  9. mloop:ÿ½ Menu item selection
  10.  ÿßÿe
  11.  ÿ¡ret%ÿp
  12. ÿ½ Returning from another routine
  13. ÿ¡ÿœÿbanner$ÿpÿ´ÿœbanner$ÿ^ÿœ
  14. ÿ¡ma%ÿ
  15. 4ÿpÿvsmenu
  16.  ÿ^
  17. ÿ½ First time thru
  18. banner$ÿ"banner2"
  19. ÿvsinit
  20. banner$ÿ"banner"
  21.  ÿ’ÿ¡
  22.  ÿ¬ÿ³ma%,mb%
  23.  ÿÊÿËss1$
  24.  
  25.  ÿ¡ret%ÿ0ÿpÿßÿ³:ÿÏÿßÿÿ¬
  26.  ÿØÿOma%
  27. ÿ¡h2%ÿÿ:(ÿR)ÿpÿvshead
  28.  ÿÙ
  29.  ÿ¡ma%ÿ
  30. 4ÿpÿ¬ÿ…
  31.  ret%ÿ1
  32.  ÿ³ma%ÿwm1,m2,m3,m4,m5,m6
  33.  
  34. sinit:ÿ½ Initialisierung beim Systemstart
  35.  ÿ†ÿt:ÿÊÿfÿ³:ÿ²"z-99999.00"
  36.  ÿ½ STATUS ON
  37.  h3$ÿ"Superbase Demonstration Trading System "
  38.  ÿÊÿË"Initializing application"
  39.  ÿÊÿÂÿŸ"Trading System"
  40.  ÿvshead
  41.  ÿ´ÿœbanner$
  42.  ÿ´ÿ™"TRANS":ÿ´ÿ™"CTRL":ÿ½ Alle Dateien öffnen
  43.  ÿ×pstk$(12),pstk%(12):ÿ½ Schlüsselarrays für Bildschirmmasken
  44.  ÿ½ mit mehreren Datensätzen
  45.  
  46.  ÿ½ Texte für Dialogfelder
  47.  ms1$ÿ"Is entry correct?"
  48.  ms2$ÿ"Continue with data entry?"
  49.  ms3$ÿ"Do you wish to reprint?"
  50.  ms4$ÿ"Has all output been correctly printed?"
  51.  ms5$ÿ"Select another record?"
  52.  ms6$ÿ"Select another line?"
  53.  ms7$ÿ"Select index sequence"
  54.  ms8$ÿ"Record already exists with this key"
  55.  ms9$ÿ"Press OK to make another selection"
  56.  ms10$ÿ"Report to printer?"
  57.  ms11$ÿ"Report line too long for printer"
  58.  ms12$ÿ"Try using a smaller font"
  59.  ms13$ÿ"Include external images and text?"
  60.  ms14$ÿ"Deleting record "
  61.  ms15$ÿ"Are you sure?"
  62.  ms16$ÿ"Print (c)urrent record, (s)elected or (a)ll records"
  63.  ms17$ÿ"(d)isplay or (p)rint?"
  64.  ms18$ÿ"Cannot find related client record"
  65.  ms19$ÿ"Transaction record found"
  66.  ms20$ÿ"Please delete related transaction(s)"
  67.  ms21$ÿ"Break in program"
  68.  ms22$ÿ"Do you wish to resume?"
  69.  ms23$ÿ"Select query to be loaded"
  70.  ms24$ÿ"Enter query name"
  71.  ms25$ÿ"Cannot edit or delete"
  72.  ms26$ÿ"Batch totals do not agree"
  73.  ms27$ÿ"Amount must be positive"
  74.  ms28$ÿ"Batch totals agree"
  75.  ms29$ÿ"Do you wish to edit batch?"
  76.  ms30$ÿ"Do you have a VGA display adapter?"
  77.  
  78.  ms311$ÿ"This produces certificate advices for"
  79.  ms312$ÿ"transactions with certificate numbers"
  80.  ms321$ÿ"This produces contract notes"
  81.  ms322$ÿ"for all new transactions"
  82.  
  83.  ms411$ÿ"This updates stocks with year highs"
  84.  ms421$ÿ"This updates stocks with year lows"
  85.  ms431$ÿ"This updates transactions to indicate"
  86.  ms432$ÿ"that certificates have been sent"
  87.  ms442$ÿ"that contract notes have been sent"
  88.  ms451$ÿ"This resets document sent flags to N"
  89.  ms452$ÿ"for transaction nos. 000020 and up"
  90.  
  91.  ÿ½ Meldungen für Statuszeile
  92.  ss1$ÿ"Select a pulldown menu option"
  93.  ss2$ÿ"Select a pushbutton option"
  94.  ss3$ÿ"Enter data for new record"
  95.  ss4$ÿ"Use TAB or click on field to be edited. ESC to stop."
  96.  ss6$ÿ"Printing"
  97.  ss7$ÿ"Press the Space Bar to continue"
  98.  ss8$ÿ"Creating temporary mailmerge file"
  99.  ss9$ÿ"Enter new value(s)"
  100.  ss10$ÿ"Browse in "
  101.  ss11$ÿ" sequence: use STOP to end browsing"
  102.  ss12$ÿ"Select line to be deleted"
  103.  ss13$ÿ"Select pushbutton or click on line to edit"
  104.  ss14$ÿ"Press any key or click on mouse button to continue"
  105.  ss15$ÿ"Create or edit query. Use ENTER to stop"
  106.  ss16$ÿ"Checking whether referenced elsewhere"
  107.  ss17$ÿ"Updating client trading balance"
  108.  ss18$ÿ"Press ENTER for default values"
  109.  ss19$ÿ"Updating"
  110.  ss20$ÿ"Enter batch total"
  111.  ss21$ÿ"Move the pointer over a transaction line and click"
  112.  ÿ¬ÿ…
  113.  
  114. smenu:ÿ½ Pulldown-Menüs definieren
  115.     ÿ½ Flags in CTRL do graying for doc production/update cycles
  116.  ÿ¬1,0,1,"&File"
  117.  ÿ¬1,1,1,"&Clients"
  118.  ÿ¬1,2,1,"&Stocks"
  119.  ÿ¬1,3,1,"C&ountries"
  120.  ÿ¬1,4,1,"C&urrencies"
  121.  ÿ¬1,5,tran.CTRL,"&Transactions"
  122.  ÿ¬1,6,1,"&Exit"
  123.  
  124.  ÿ¬2,0,1,"&Daily"
  125.  ÿ¬2,1,1,"&Currency Rates"
  126.  ÿ¬2,2,1,"&Stock Prices"
  127.  ÿ¬2,3,cent.CTRL,"Certificate &Nos"
  128.  ÿ¬2,4,1,"Cash &Receipts"
  129.  ÿ¬2,5,1,"Cash &Payments"
  130.  
  131.  ÿ¬3,0,1,"D&ocuments"
  132.  ÿ¬3,1,cert.CTRL,"&Certificates":
  133.  ÿ¬3,2,cont.CTRL,"C&ontract Notes"
  134.  ÿ¬3,3,1,"&Statements"
  135.  
  136.  ÿ¬4,0,1,"&Update"
  137.  ÿ¬4,1,1,"Stock &Highs"
  138.  ÿ¬4,2,1,"Stock &Lows"
  139.  ÿ¬4,3,ceru.CTRL,"&Certs Sent"
  140.  ÿ¬4,4,conu.CTRL,"&Notes Sent"
  141.  ÿ¬4,5,1,"&Reset"
  142.  
  143.  ÿ¬5,0,1,"&Query"
  144.  ÿ¬5,1,1,"&Run"
  145.  ÿ¬5,2,1,"&New"
  146.  ÿ¬5,3,1,"&Open"
  147.  ÿ¬5,4,1,"&Edit"
  148.  ÿ¬5,5,1,"&Save"
  149.  
  150.  ÿ¬6,0,1,"&Reports"
  151.  ÿ¬6,1,1,"&Traded Stocks"
  152.  ÿ¬6,2,1,"Stock &Highs"
  153.  ÿ¬6,3,1,"Stock &Lows"
  154.  ÿ¬6,4,1,"T&rading Balances"
  155.  ÿ¬6,5,1,"-----------------"
  156.  ÿ¬6,6,1,"Telephone &Nos"
  157.  ÿ¬6,7,1,"Client &Balances"
  158.  ÿ¬6,8,1,"&Cash Audit"
  159.  ÿÃ
  160.  
  161. shead:ÿ½ Kopfzeile einmal pro Minute aktualisieren
  162.  h1$ÿÿ(ÿQ,"mmm dd, yy"):h2$ÿÿ7(ÿR,"hh:mm am")
  163.  h2%ÿÿ:(ÿR):h3%ÿ(50ÿÿ/(h3$))ÿ2
  164.  h4$ÿh1$ÿÿ'(h3%)ÿh3$ÿÿ'(h3%)ÿh2$
  165.  ÿÊÿŸh4$
  166.  ÿÃ
  167.  
  168. m1:ÿ½ Die Optionen im Menü FILE (ma%= 1)
  169.  selkey$ÿ"":selkey%ÿ0
  170.  ÿ³mb%ÿwstkf,stkf,m13,m13,stkf,m16
  171.  
  172. m13:ÿ½ File Country, Currency
  173.  ÿ„"stkfo"
  174.  
  175. m16:ÿ½ File Exit
  176.  ÿ†ÿt:ÿÊÿŸ"":ÿÊÿÂÿŸ"":ÿ’
  177.  
  178. m2:ÿ½ Die Optionen im Menü DAILY (ma%=2)
  179.  ÿ³mb%ÿwm21,m21,m21,m24,m24
  180.  
  181. m21:ÿ½ Daily Currency rates, Stock prices, Certificate numbers
  182.  ÿ„"stkdc"
  183.  
  184. m24:ÿ½ Daily Cash receipts, Cash payments
  185.  ÿ„"stkdr"
  186.  
  187. m3:ÿ½ Die Optionen im Menü DOCUMENTS (ma%=3)
  188.  ÿ³mb%ÿvm31,m31,stkf
  189.  ÿwmloop
  190.  
  191. m31:ÿ½ Documents Certificate advices, Contract notes
  192.  ÿÉÿæmb%
  193.  ÿæ1
  194. ÿÂms311$,ms312$,140,a%
  195.  ÿæ2
  196. ÿÂms321$,ms322$,140,a%
  197.  ÿ’ÿÉ
  198.  ÿ¡a%ÿ0ÿpÿÃ
  199.  
  200.  ÿßÿe
  201.  ÿÊÿËss8$
  202.  ÿ¡mb%ÿ1ÿp
  203. ÿ½ Zertifikatsanzeigen
  204. docf$ÿ"certs":letf$ÿ"lecerts"
  205. ÿ¡ÿJ("certs.sbf")ÿpÿ´ÿ™docf$:ÿ¾ÿ™docf$
  206. ÿÉCustomer_Ref.TRANS,Quantity.TRANS,Certificate_No.TRANS,Title.CLIENTS,Firstname.CLIENTS,
  207. Lastname.CLIENTS,Company.CLIENTS,Street.CLIENTS,Address.CLIENTS,
  208. City.CLIENTS,State.CLIENTS,Zip_Code.CLIENTS,Country.CLIENTS,
  209. Company Name.STOCKS,Stock_Type
  210. ÿÐCustomer_Ref.TRANSÿCustomer_Ref.CLIENTSÿ Stock_Key.TRANSÿStock_Key.STOCKSÿ Trans_Type.TRANSÿ"b"ÿ Certificate_No.TRANSÿ""ÿ Cert_Sent_yn.TRANSÿ"n"
  211. ÿµStock_Key.TRANS,Certificate_No.TRANS
  212. ÿqÿ™docf$
  213. ÿ’ÿÉ
  214.  ÿ^ÿ¡mb%ÿ2ÿp
  215. ÿ½ Contract notes (Ausführungsanzeigen)
  216. docf$ÿ"invs":letf$ÿ"leinvs"
  217. ÿ¡ÿJ("invs.sbf")ÿpÿ´ÿ™docf$:ÿ¾ÿ™docf$
  218. ÿÉStock_Key.TRANS,Customer_Ref.TRANS,Transaction ref,Trans_Type,Trans_Desc,Trans_Date,Settlement_Date,ÿ(Quantity.TRANS,6,0)ÿU"QTY",ÿ(Stock_Price.TRANS,6,2)ÿU"PR",Currency.TRANS,USD Xrate.TRANS,
  219. ÿ(ÿ(USD Value.TRANS),6,2)ÿU"USDV",(Comm_Value)ÿU"Com",ÿ(ÿ(USD Value.TRANSÿComm_Value),6,2)ÿU"TV",&24(Client.CLIENTS)ÿU"Client",Company.CLIENTS,Street.CLIENTS,Address.CLIENTS,City.CLIENTS,
  220. State.CLIENTS,Zip_Code.CLIENTS,Country.CLIENTS,Company Name.STOCKS,Stock_Type,Exchange
  221. ÿÐCustomer_Ref.TRANSÿCustomer_Ref.CLIENTSÿ Stock_Key.TRANSÿStock_Key.STOCKSÿ Invoice_Sent_yn.TRANSÿ"n"
  222. ÿµCustomer_Ref.TRANS,Transaction ref
  223. ÿqÿ™docf$
  224. ÿ’ÿÉ
  225.  ÿ’ÿ¡
  226.  ÿ´ÿ™docf$
  227.  ÿvsdorp:ÿ½ Anzeigen oder drucken
  228.  ÿ¡a%ÿ0ÿpÿ¾ÿ™docf$:ÿÃ
  229.  
  230. m312:ÿ½ Serienbrief anzeigen oder drucken
  231.  ÿ¨ÿoletf$:ÿÉÿ`
  232.  ÿØÿOÿB(docf$)
  233. ÿ¡p$ÿ"p"ÿpÿ­ÿoletf$
  234. ÿ¡p$ÿ"d"ÿpÿ{ÿoÿ­
  235. ÿ½ WAIT FOR 2
  236. ÿÉÿ±
  237.  ÿÙ
  238.  b%ÿ0
  239.  ÿÂms4$,"",130,a%
  240.  ÿ¡a%ÿp
  241. ÿ½ CTRL aktualisieren und Menüs wieder de- (=0) oder reaktivieren (=1)
  242. ÿ™"ctrl"
  243. ÿ¡mb%ÿ1ÿp
  244. tran.CTRLÿ0:cent.CTRLÿ0:cert.CTRLÿ0:ceru.CTRLÿ1
  245. ÿ¬1,5,tran.CTRL,"&Transactions"
  246. ÿ¬2,3,cent.CTRL,"Certificate &Nos"
  247. ÿ¬3,1,cert.CTRL,"&Certificates"
  248. ÿ¬4,3,ceru.CTRL,"&Certs Sent"
  249. ÿ^ÿ¡mb%ÿ2ÿp
  250. tran.CTRLÿ0:cont.CTRLÿ0:conu.CTRLÿ1
  251. ÿ¬1,5,tran.CTRL,"&Transactions"
  252. ÿ¬3,2,cont.CTRL,"C&ontract Notes"
  253. ÿ¬4,4,conu.CTRL,"&Notes Sent"
  254. ÿ’ÿ¡
  255. ÿÌ
  256.  ÿ^
  257. ÿÂms3$,"",135,b%
  258. ÿ¡b%ÿ0ÿpÿ¾ÿ™docf$
  259.  ÿ’ÿ¡
  260.  ÿ¡b%ÿ1ÿwm312
  261.  ÿÃ
  262.  
  263. m4:ÿ½ Die Optionen im Menü UPDATE (ma%=4)
  264.  ÿ³mb%ÿvm41,m42,m43,m44,m45
  265.  ÿwmloop
  266.  
  267. m41:ÿ½ New Highs (neue Höchstpreise) aktualisieren
  268.  ÿÂms411$,"",140,a%
  269.  ÿ¡a%ÿp
  270. ÿßÿe
  271. ÿÊÿËss19$
  272. ÿÍYear_High.STOCKSÿPrice Middle.STOCKS:Date of High.STOCKSÿPrice Date.STOCKS
  273. ÿÐPrice Middle.STOCKSÿYear_High.STOCKSÿÿ6(Price Date.STOCKS)ÿÿ6(Date of High.STOCKS)
  274. ÿ’ÿÍ
  275.  ÿ’ÿ¡
  276.  ÿÃ
  277.  
  278. m42:ÿ½ Update New Lows
  279.  ÿÂms421$,"",140,a%
  280.  ÿ¡a%ÿp
  281. ÿßÿe
  282. ÿÊÿËss19$
  283. ÿÍYear_Low.STOCKSÿPrice Middle.STOCKS:Date of Low.STOCKSÿPrice Date.STOCKS
  284. ÿÐPrice Middle.STOCKSÿ    Year_Low.STOCKSÿÿ6(Price Date.STOCKS)ÿÿ6(Date of Low.STOCKS)
  285. ÿ’ÿÍ
  286.  ÿ’ÿ¡
  287.  ÿÃ
  288.  
  289. m43:ÿ½ Update Certs Sent
  290.  ÿÂms431$,ms432$,140,a%
  291.  ÿ¡a%ÿp
  292. ÿßÿe
  293. ÿÊÿËss19$
  294. ÿÍCert_Sent_YN.TRANSÿ"y"
  295. ÿÐCertificate_No.TRANSÿ""ÿ Cert_Sent_YN.TRANSÿ"n"
  296. ÿ’ÿÍ
  297.  
  298. ÿ½ CTRL aktualisieren und Menüs wieder de- (=0) oder reaktivieren (=1)
  299. ÿ™"ctrl"
  300. tran.CTRLÿ1:cent.CTRLÿ1:cert.CTRLÿ1:ceru.CTRLÿ0
  301. ÿ¬1,5,tran.CTRL,"&Transactions"
  302. ÿ¬2,3,cent.CTRL,"Certificate &Nos"
  303. ÿ¬3,1,cert.CTRL,"&Certificates"
  304. ÿ¬4,3,ceru.CTRL,"&Certs Sent"
  305. ÿÌ
  306.  ÿ’ÿ¡
  307.  ÿÃ
  308.  
  309. m44:ÿ½ Update Contract Notes Sent
  310.  ÿÂms431$,ms442$,140,a%
  311.  ÿ¡a%ÿp
  312. ÿßÿe
  313. ÿÊÿËss19$
  314. ÿÍInvoice_Sent_yn.TRANSÿ"y"ÿÐInvoice_Sent_yn.TRANSÿ"n"
  315. ÿ’ÿÍ
  316.  
  317. ÿ½ CTRL aktualisieren und Menüs wieder de- (=0) oder reaktivieren (=1)
  318. ÿ™"ctrl"
  319. tran.CTRLÿ1:cont.CTRLÿ1:conu.CTRLÿ0
  320. ÿ¬1,5,tran.CTRL,"&Transactions"
  321. ÿ¬3,2,cont.CTRL,"C&ontract Notes"
  322. ÿ¬4,4,conu.CTRL,"&Notes Sent"
  323. ÿÌ
  324.  ÿ’ÿ¡
  325.  ÿÃ
  326.  
  327. m45:ÿ½ Resets document flags in TRANS for numbers 000020 and up
  328.  ÿÂms451$,ms452$,140,a%
  329.  ÿ¡a%ÿp
  330. ÿÊÿË"Updating TRANS file"
  331. ÿ™"TRANS"
  332. ÿ£Transaction ref
  333. ÿÍCert_Sent_yn.TRANSÿ"n":Invoice_Sent_yn.TRANSÿ"n"ÿÐTransaction ref.TRANSÿ20
  334. ÿ’ÿÍ
  335.  ÿ’ÿ¡
  336.  ÿÃ
  337.  
  338. m5:ÿ½ Die Optionen im Menü QUERY (ma%=5)
  339.  ÿßÿ³:ÿ²"z-9999999.00"
  340.  ÿÉÿæmb%
  341.  ÿæ1:ÿ½ Der Menüpunkt QUERY Run
  342. ÿvsdorp
  343. ÿ¡a%ÿp
  344. ÿ¡p$ÿ"p"ÿp
  345. ÿ{ÿiÿqÿh
  346. ÿ^
  347. ÿ{ÿi
  348. ÿÊÿËss14$
  349. ÿÏÿ¥ÿÿß
  350. ÿ’ÿ¡
  351. ÿœ
  352. ÿ’ÿ¡
  353.  ÿæ2:ÿ½ Der Menüpunkt QUERY New
  354. ÿÊÿËss15$
  355. ÿ³ÿ_ÿwmqerror
  356. ÿ°ÿi
  357. ÿÿi
  358.  ÿæ3:ÿ½ Der Menüpunkt QUERY Open
  359. ÿÂms23$,"",14,a%,q$
  360. ÿ¡a%ÿpÿ¨ÿiq$
  361.  ÿæ4:ÿ½ Der Menüpunkt QUERY Edit
  362. ÿÊÿËss15$
  363. ÿ³ÿ_ÿwmqerror
  364. ÿÿi
  365.  ÿæ5:ÿ½ Der Menüpunkt QUERY Save
  366. ÿÂms24$,"",14,a%,q$
  367. ÿ¡a%ÿpÿÅÿiq$
  368.  ÿ’ÿÉ
  369.  ÿ¡mb%ÿ2ÿpmb%ÿ1:ÿwm5:ÿ½ IF Neue Abfrage THEN Run
  370.  
  371. mqerror: ÿ½ Abfangmechanismus für Fehler, die im 
  372.  ÿ½ Dialogfeld Query auftreten.
  373.  ÿ³ÿ_ÿwferror
  374.  ÿ²"z-99999.00"
  375.  ÿwmloop
  376.  
  377. m6:ÿ½ Die Optionen im Menü REPORTS (ma%=6)
  378.  ÿvsdorp:ÿ¡a%ÿ0ÿpÿwmloop
  379.  ÿ³mb%ÿwm61,m62,m63,m64,mloop,m66,m67,m68
  380.  
  381. m61:ÿ„"stkrte"
  382. m62:ÿ„"stkrhe"
  383. m63:ÿ„"stkrle"
  384. m64:ÿ„"stkrre"
  385. m66:ÿ„"stkrne"
  386. m67:ÿ„"stkrbe"
  387. m68:ÿ„"stkrce"
  388.  
  389. sdorp:ÿ½ Auswahl d=Bildschirm p=Drucker
  390.  p$ÿ"d"
  391.  ÿÂms17$,"",4,a%,p$,1
  392.  ÿ¡ÿO(p$ÿ"[pd]")ÿwsdorp
  393.  ÿ¡a%ÿp
  394. p$ÿÿ=(p$)
  395. ÿ¡p$ÿ"d"ÿpÿÊÿËss7$ÿ^ÿÊÿËss6$:ÿ¹;
  396.  ÿ’ÿ¡
  397.  ÿÃ
  398.  
  399. stkf:ÿ½ File Clients, Stocks, Transactions 
  400. ÿ½ Documents Statements
  401.  fst%ÿ0:cli%ÿ1:stk%ÿ2:sta%ÿ3:tra%ÿ5:k%ÿ1:t%ÿ0
  402.  ÿ½ Set option parameters
  403.  ÿÉÿæmb%
  404.  ÿæcli%:ÿ½ File Clients
  405. f$ÿ"clients":fkey$ÿ"Customer_Ref":fmd$ÿ"stkc":fmp$ÿ"stkc"
  406.  ÿæstk%:ÿ½ File Stocks
  407. f$ÿ"stocks":fkey$ÿ"Stock_Key":fmd$ÿ"stks":fmp$ÿ"stks"
  408.  ÿæsta%:ÿ½ Documents Statements
  409. f$ÿ"clients":fkey$ÿ"Customer_Ref":fmd$ÿ"stkos":fmp$ÿ"stkos"
  410.  ÿætra%:ÿ½ File Transactions
  411. f$ÿ"trans":fkey$ÿ"Transaction ref":fmd$ÿ"stkt":fmp$ÿ"stkt":k%ÿ2
  412.  ÿ’ÿÉ
  413.  
  414.  ÿ™f$
  415.  ÿ£fkey$
  416.  ÿ¡ÿœÿfmd$ÿpÿ´ÿœfmd$
  417.  ind$ÿÿ£
  418.  ÿvsset
  419.  
  420.  ÿ½ File-Formulare haben Befehl nur auf Seite 1
  421.  ÿ½ zur Auswahl von Formular nach selkey
  422.  ÿ¡mb%ÿsta%ÿpÿœ2
  423.  ÿwfwait
  424.  
  425. floop:ÿ½ Formular erneut darstellen
  426.  ÿvsset
  427.  ÿvssearch
  428.  ÿÎ
  429.  
  430. fwait:ÿ½ Warten auf Formular-Drucktaste
  431.  ed%ÿ1
  432.  ÿÊÿËss2$
  433.  ÿÏÿß
  434.  ÿwfwait
  435.  
  436. fedit:ÿ½ Drucktaste editieren
  437.  ÿÊÿËss4$
  438.  ÿ¡mb%ÿtra%ÿpoamt%ÿTotal_Due.TRANS
  439.  ÿßÿ³:ÿ”3,0
  440.  
  441. fedit2: 
  442.  ÿßÿe
  443.  ÿÂms1$,"",127,a%
  444.  ÿ¡a%ÿ1ÿp
  445. ÿÌ:ÿ½ Speichert editierte Daten
  446. ÿ¡mb%ÿtra%ÿpamt%ÿTotal_Due.TRANSÿoamt%:ÿvsupdate
  447.  ÿ^
  448. ÿÉÿœÿY:ÿ½ Formular wie vor bearbeiten neu darstellen
  449.  ÿ’ÿ¡
  450.  ÿwfloop
  451.  
  452. fenter: ÿ½ Drucktaste
  453.  ÿÿœ:ed%ÿ0
  454.  ÿ¡mb%ÿtra%ÿp
  455. Trans_Type ÿ"b":del%ÿ0:ÿÊÿËss18$
  456.  ÿ^
  457. ÿ¡mb%ÿcli%ÿpClass.CLIENTSÿ"P"
  458. ÿÊÿËss3$
  459.  ÿ’ÿ¡
  460.  ÿßÿ³:ÿ”3,0
  461.  
  462. fenter2: 
  463.  ÿßÿe
  464.  b%ÿ0
  465.  ÿÂms1$,"",127,a%
  466.  ÿ¡a%ÿp
  467. ÿÌ:ÿ½ Neuen Datensatz speichern
  468. del%ÿ0
  469. ÿ¡mb%ÿtra%ÿpamt%ÿTotal_Due.TRANS:ÿvsupdate
  470. ÿÂms2$,"",130,b%
  471.  ÿ^
  472. ÿÉÿœÿY:ÿ½ Aktuelles Formular erneut darstellen
  473.  ÿ’ÿ¡
  474.  ÿ¡b%ÿpÿwfenter
  475.  ÿœ2
  476.  ÿwfloop
  477.  
  478. fdelete:ÿ½ Drucktaste Delete
  479.  del%ÿ1
  480.  ÿ¡mb%ÿtra%ÿp
  481. ÿ½ Clients, Stocks, zugehörige Transactions? Falls ja, del%=0 setzen
  482. ÿÊÿËss16$
  483. ÿ™"trans"
  484. skey$ÿckey$
  485. ÿ¡mb%ÿcli%ÿpÿ£Customer_Ref.TRANS
  486. ÿ¡mb%ÿstk%ÿpÿ£Stock_Key.TRANS
  487. ÿÉÿ¥skey$
  488. ÿ¡ÿC("")ÿpdel%ÿ0
  489. ckey$ÿskey$
  490. ÿ™f$
  491.  ÿ’ÿ¡
  492.  ÿ¡del%ÿ1ÿp
  493. ÿÂms14$,"",119,a%
  494. ÿ¡a%ÿp
  495. ÿ¡mb%ÿtra%ÿpamt%ÿÿTotal_Due.TRANS:ÿvsupdate
  496. ÿÉÿ¾
  497. ÿ’ÿ¡
  498.  ÿ^
  499. ÿÂms19$,ms20$,100,a%
  500.  ÿ’ÿ¡
  501.  ÿ¡del%ÿ0ÿwfwait
  502.  ÿÉÿœÿ¥ind$$
  503.  ÿwfloop 
  504.  
  505. fswitch:ÿ½ Schlüssel von transaction und form/record zuweisen
  506.  mp%ÿ0
  507.  ÿÊÿËss21$
  508.  ÿÏÿß
  509.  ÿ¡(mp%ÿ0ÿmp%ÿ10)ÿpÿwfswitch
  510.  ÿÉÿœÿ"mp%
  511.  
  512. fswitch2:ÿ½ Eingabe von Trans-Formular: keine Zeile auswählen
  513.  ÿÉÿæmb%
  514.  ÿæcli%
  515. selkey$ÿCustomer_Ref.TRANS
  516.  ÿæstk%
  517. selkey$ÿStock_Key.TRANS
  518.  ÿætra%
  519. selkey%ÿTransaction ref.TRANS
  520.  ÿ’ÿÉ
  521.  ÿwstkf
  522.  
  523. fexit:ÿ½ Exit pushbutton
  524.  ÿwmloop
  525.  
  526. stexit: 
  527.  ÿÃ
  528.  
  529. supdate:ÿ½ Wenn Transaktion geändert, Balance in Client-Datensatz aktualisieren
  530.  ÿÊÿËss17$
  531.  ÿ™"clients"
  532.  ÿ£Customer_Ref.CLIENTS
  533.  ÿÉÿ¥Customer_Ref
  534.  ÿ¡ÿC("")ÿp
  535. Trading_Balance.CLIENTSÿTrading_Balance.CLIENTSÿamt%
  536. ÿÌ
  537.  ÿ^
  538. ÿÂms18$,"",100,a%
  539.  ÿ’ÿ¡
  540.  ÿ™f$
  541.  ÿÃ
  542.  
  543. sindex:ÿ½ Drucktaste Index
  544.  ÿÂms7$,"",7,a%,ind$
  545.  ÿ¡a%ÿp
  546. ÿ£ind$
  547. ÿvssearch
  548.  ÿ’ÿ¡
  549.  ÿÎ
  550.  ÿÃ
  551.  
  552. spanel:ÿ½ Drucktaste Browse
  553.  ÿ³ÿ_ÿwserror
  554.  err%ÿ0
  555.  ss5$ÿss10$ÿind$ÿss11$
  556.  ÿÊÿËss5$
  557.  
  558. spanel2: 
  559.  ÿÏÿâ
  560.  ÿ³ÿ_ÿwferror
  561.  ÿÉÿÐ
  562.  ÿ¡err%ÿ1ÿpÿ‚ÿ³
  563.  ÿvsset
  564.  ÿÃ
  565.  
  566. serror: ÿ‚ÿe:ÿ½ Fehler von Wait Panel abfangen
  567.  ÿÂÿ((ÿ&),"",2,a%
  568.  err%ÿ1
  569.  ÿÉÿœÿY:ÿyspanel2
  570.  
  571. sprint:ÿ½ Print pushbutton
  572.  b$ÿ"c":c%ÿ0
  573.  ÿÂms16$,"",4,a%,b$,1
  574.  ÿ¡a%ÿ0ÿpÿÃ
  575.  ÿ¡ÿO(b$ÿ"[csa]")ÿpÿwsprint
  576.  b$ÿÿ=(b$)
  577.  ÿ¡mb%ÿcli%ÿpÿÂms13$,"",135,c%
  578.  
  579.  ÿÊÿËss6$
  580.  ÿ½ OPEN FORM fmp$:REM Open special print form
  581.  ÿ¡b$ÿ"c"ÿp
  582. ÿvssearch
  583. ÿvssprint
  584. ÿ½ OPEN FORM fmd$
  585. ÿvssearch
  586.  ÿ^
  587. ÿ¡b$ÿ"s"ÿpÿÉÿœÿÐÿ~
  588. ÿÉÿœÿ`
  589. ÿØÿOÿB(f$)
  590. ÿvssprint 
  591. ÿÉÿœÿ±
  592. ÿÙ
  593. ÿÉÿÐ
  594. ÿ;
  595. ÿ½ OPEN FORM fmd$
  596. ÿÉÿ`
  597.  ÿ’ÿ¡
  598.  ÿÎ
  599.  ÿÃ
  600.  
  601. ssprint:ÿ½ print required pages
  602.  ÿÉÿæmb%
  603.  ÿæcli%
  604. ÿœ2:ÿ¹ÿYÿí
  605. ÿ¡c%ÿpÿœÿÈ3:ÿ¹ÿYÿí
  606. ÿœ4:ÿ¹ÿYÿí
  607.  ÿæstk%
  608. ÿœ2:ÿ¹ÿYÿí
  609. ÿœ3:ÿ¹ÿYÿí
  610. ÿœ4:ÿ¹ÿYÿí
  611.  ÿætra%
  612. ÿœ2:ÿ¹ÿYÿí
  613.  ÿæsta%
  614. ÿ¹ÿYÿí
  615.  ÿ’ÿÉ
  616.  ÿÃ
  617.  
  618. sset:ÿ½ Speichert eindeutigen Wert für Datensatz in Schlüssel
  619.  ÿ¡k%ÿ1ÿpckey$ÿfkey$$
  620.  ÿ¡k%ÿ2ÿpckey%ÿfkey$$
  621.  ÿÃ
  622.  
  623. ssearch:ÿ½ Findet eindeutigen Datensatz, selbst 
  624. ÿ½ wenn in Index doppelte Schlüssel existieren
  625.  ÿÉÿœÿ¥ind$$
  626.  
  627. ssearch2: ÿ½ Schleife bis aktueller Datensatz gefunden
  628.  ÿ¡k%ÿ1ÿpÿ¡fkey$$ÿckey$ÿpÿÃ
  629.  ÿ¡k%ÿ2ÿpÿ¡fkey$$ÿckey%ÿpÿÃ
  630.  ÿÉÿœÿ±
  631.  ÿwssearch2
  632.  
  633. ferror:ÿ½ Allgemeiner Fehlerabfangmechanismus
  634.  res%ÿ0
  635.  ÿ¡ÿ&ÿ11ÿp
  636. ÿÂms21$,ms22$,130,a%:ÿ¡a%ÿ1ÿpres%ÿ1
  637.  ÿ^ÿ¡ÿ&ÿ57ÿp
  638. ÿÂms8$,"",2,a%:res%ÿ2
  639.  ÿ^
  640. ÿÂÿ((ÿ&),ms9$,114,a%:ÿ¡a%ÿ1ÿpres%ÿ3
  641.  ÿ’ÿ¡
  642.  ÿ¡res%ÿ1ÿpÿy
  643.  ÿ¡res%ÿ2ÿpÿyfloop
  644.  ÿ¡res%ÿ3ÿpÿymloop
  645.  ÿ
  646.  
  647.  
  648.  
  649.